﻿package events {
	import flash.events.Event;

	/**
	 * @author Hank
	 * 2009-9-29
	 */
	public class NBEvent extends Event {

		static public const TRANSITION_END : String = "transition_end";
		static public const TRANSITION_FORWARD : String = "transition_forward";
		static public const TRANSITION_BACKWARD : String = "transition_backward";
		
		public var isBubbles:Boolean;

		public function NBEvent(type : String, bubbles : Boolean = false, cancelable : Boolean = false) {
			super(type, bubbles, cancelable);
//			super(type, bubbles, cancelable);
			isBubbles = bubbles;
		}
		
		override public function clone():Event{
			trace('type: ' + (type));
			trace('isBubbles: ' + (isBubbles));
			return new NBEvent(type, isBubbles);
		}
	}
}
